import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 高生平
 * Date: 2025-09-06
 * Time: 15:57
 */
public class Test {
    public static int Count (int n) {
        int count = 0;
        while (n > 0) {
            count++;
            n &= n - 1;
        }
        return count;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNextInt()) {
            int num = sc.nextInt();
            int ret = Count(num);
            System.out.println(num + "的二进制中1的个数为：" + ret);
        }
    }
}
